<!DOCTYPE html>
<html lang="zh-cn">

<head>

  <meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

  <title>滑雪族 - 主办方信息</title>

  <!-- Bootstrap Core CSS -->
<!-- MetisMenu CSS -->
<!-- Custom CSS -->
<!-- Custom Fonts -->
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->  <!--webuploader 引入CSS-->
    <link rel="stylesheet" href="/server/r/bower_components/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/server/r/bower_components/metisMenu/dist/metisMenu.min.css" />
    <link rel="stylesheet" href="/server/r/static/css/sb-admin-2_e507c2b.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/font-awesome/css/font-awesome.min.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/static/css/hxz/common_2baa698.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.core.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/alertify/themes/alertify.bootstrap.css" />
    <link type="text/css" rel="stylesheet" href="/server/r/vendor/umeditor/themes/default/css/umeditor.css" />
    <link rel="stylesheet" type="text/css" href="/server/r/bower_components/fex-webuploader/dist/webuploader.css" />
</head>

<body>

<div id="wrapper">

  <!-- Navigation -->
  <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">

    <div class="navbar-header">
  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
    <span class="sr-only">Toggle navigation</span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
  </button>
  <a class="navbar-brand" href="activity-list">滑雪族 管理</a>
</div>
<!-- /.navbar-header -->

<ul class="nav navbar-top-links navbar-right">
  <!-- /.dropdown -->
  <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
      <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
    </a>
    <ul class="dropdown-menu dropdown-user">
      <li><a href="/manage/logout"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a>
      </li>
    </ul>
    <!-- /.dropdown-user -->
  </li>
  <!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->

    <div class="navbar-default sidebar" role="navigation">
      <div class="sidebar-nav navbar-collapse">
        <ul class="nav" id="side-menu">
  <li>
    <a href="#"><i class="fa fa-asterisk fa-fw"></i> 产品管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/activity-list"> 产品查询</a>
      </li>
      <li>
        <a href="/manage/manage-organizer-render-activity"> 产品显示控制</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="/#"><i class="fa fa-male fa-fw"></i> 报名管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/player-list"> 报名查询</a>
      </li>
    </ul>
  </li>
  <li>
    <a href="#"><i class="fa fa-list-alt fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/order-list"> 订单查询</a>
      </li>
      <li>
        <a href="/manage/refund-list"> 退款管理</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-check-circle fa-fw"></i> 主办方认证<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/organizer-edit"> 创建主办方</a>
      </li>
      <li>
        <a href="/manage/organizer-list"> 主办方列表</a>
      </li>
      <li>
        <a href="/manage/organizer-print"> 冬令营打印设置</a>
      </li>

    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-picture-o fa-fw"></i> 雪场管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/ski-field-edit"> 创建雪场</a>
      </li>
      <li>
        <a href="/manage/ski-field-list"> 雪场列表</a>
      </li>

    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-users fa-fw"></i> 教练管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/coach-list"> 预约情况</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-credit-card fa-fw"></i> 结算管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/manage-transfer-list"> 转账管理</a>
      </li>
      <li>
        <a href="/manage/manage-withdrawals-apply-list"> 提现申请</a>
      </li>
      <li>
        <a href="/manage/manage-withdrawals-record-list"> 结算列表</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-rmb fa-fw"></i> 财务管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/stream-list"> 交易流水</a>
      </li>
      <li>
        <a href="/manage/manage-bill-record-list"> 对账列表</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-dollar fa-fw"></i> 营销管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/marketing-list"> 返利管理</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-comments fa-fw"></i> 评价管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/comment-list">评价管理</a>
      </li>
    </ul>
  </li>
  <li>
    <a href="#"><i class="fa fa-tasks fa-fw"></i> 定时处理管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/quartz-list"> 定时处理列表</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
  <li>
    <a href="#"><i class="fa fa-wechat fa-fw"></i> 微信页面管理<span class="fa arrow"></span></a>
    <ul class="nav nav-second-level">
      <li>
        <a href="/manage/typography-list"> 微信首页管理</a>
      </li>
      <li>
        <a href="/manage/activity-weight-manage"> 活动置顶</a>
      </li>
    </ul>
    <!-- /.nav-second-level -->
  </li>
</ul>
      </div>
      <!-- /.sidebar-collapse -->
    </div>
    <!-- /.navbar-static-side -->
  </nav>

  <div id="page-wrapper">

    <div class="row">
      <div class="col-lg-12">
        <h3 class="page-header">主办方详情
          <div class="pull-right">
            <div class="form-group">
              <button id="user-profile-save-btn" class="btn btn-sm btn-primary">保存</button>
              <a href="/manage/organizer-list" class="btn btn-sm btn-success btn-outline">返回</a>
            </div>
          </div>
        </h3>
      </div>
      <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            主办方详情
            <input id="allowTypes" type="hidden" value="${allowTypes}">
          </div>
          <div class="panel-body">
            <div class="row">
              <div class="col-lg-8 col-md-offset-1">
                <div class="row">
                  <div class="col-lg-4">
                    <div class="form-group">
                      <input id="organizer-id" value="${(organizer.organizerId)!''}" type="hidden"/>
                      <input id="organizer-type" value="${(organizer.type)!''}" type="hidden"/>
                      <input id="organizer-showBottom" value="${(organizer.showBottom)!''}" type="hidden"/>
                      <!--<label>主办方图标:</label>-->
                      <#if !organizer.logoUrl??>
                        <img width="100%" src="/server/r/static/images/org-logo.jpg" id="preview-image" style="border: 1px solid #ddd;"/>
                      <#else>
                        <img width="100%" src="${(organizer.logoUrl)!''}" id="preview-image" style="border: 1px solid #ddd;"/>
                      </#if>
                    </div>
                    <div class="form-group">
                      <label>主办方LOGO</label>

                      <div id="uploader-demo">
                        <!--用来存放item-->
                        <div id="filePicker">选择图片</div>
                      </div>

                      <input type="hidden" id="organizer-logoUrl" value="${(organizer.logoUrl)!''}"/>
                    </div>
                  </div>
                  <div class="col-lg-8">
                    <#if !organizer.name??>
                    <div class="form-group form-require">
                      <input id="hxz-userId" type="hidden"/>
                      <input id="add-organizer" type="hidden" value="1"/>
                      <label>滑雪族官网账号:</label>
                      <p style="text-indent: 2em;">
                        请输入滑雪族官网账号(手机号或邮箱)。系统绑定成功后，将作为主办方登录后台的账号。
                        如果没有滑雪族官网账号，请先<a style="font-weight: bold;" href="http://www.huaxuezoo.com/register?redirectUrl=http%3A%2F%2Fweixin.huaxuezoo.com%2Fmanage%2Forganizer-edit" target="_blank">注册</a>。
                      </p>

                      <div class="row">
                        <div class="col-lg-7">
                          <input id="organizer-userId" placeholder="滑雪族官网手机号或者邮箱" class="form-control">
                        </div>
                        <div class="col-lg-5">
                          <a class="btn btn-info" id="bind-Hxz-btn">绑定滑雪族账号</a>
                        </div>
                      </div>
                    </div>
                    </#if>
                    <div class="form-group form-require">
                      <label>主办方名称:</label>
                      <input id="organizer-name" class="form-control" placeholder="主办方名称"
                             value="${(organizer.name)!''}">
                    </div>
                    <div class="form-group form-require">
                      <label>联系人:</label>
                      <input id="organizer-contactPerson" class="form-control" placeholder="联系人"
                             value="${(organizer.contactPerson)!''}">
                    </div>
                    <div class="form-group form-require">
                      <label>邮箱:</label>
                      <input id="organizer-email" class="form-control" placeholder="邮箱" value="${(organizer.email)!''}">
                    </div>
                    <div class="form-group form-require">
                      <label>联系电话:</label>
                      <input id="organizer-phone" class="form-control" placeholder="手机号"
                             value="${(organizer.phone)!''}">
                    </div>
                    <div class="form-group form-require">
                      <label>主办方简介:</label>
                      <textarea id="user-profile-introduction" class="form-control" rows="5" style="resize: none;">${(organizer.description)!''}</textarea>
                    </div>
                    <div class="form-group">
                      <label>主办方类型：</label>
                      <div class="form-inline">
                        <#if organizer.category?exists>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="1" ${(organizer.category==1)?string('checked', '')}>俱乐部
                          </label>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="2" ${(organizer.category==2)?string('checked', '')}>雪场
                          </label>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="3" ${(organizer.category==3)?string('checked', '')}>旅游公司
                          </label>
                        <#else>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="1" checked>俱乐部
                          </label>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="2">雪场
                          </label>
                          <label class="radio-inline">
                            <input name="organizer-category" type="radio" value="3">旅游公司
                          </label>
                        </#if>
                      </div>
                    </div>
                    <div class="form-group">
                      <label>权限：</label>
                      <div>
                        <#list types as type>
                          <label style="margin-right: 10px">
                            <input id="activity${type.id}" name="type" value="${type.id}" type="checkbox">${type.text}
                          </label>
                        </#list>
                      </div>
                    </div>
                    <div class="form-group">
                      <label>是否显示底部菜单：</label>

                      <div class="form-inline">
                        <#if organizer.showBottom?exists>
                          <#if organizer.showBottom==0>
                            <label class="radio-inline">
                              <input name="show-bottom" type="radio" value="0" checked>不显示
                            </label>
                            <label class="radio-inline">
                              <input name="show-bottom" type="radio" value="1">显示
                            </label>
                            <#else>
                              <label class="radio-inline">
                                <input name="show-bottom" type="radio" value="0">不显示
                              </label>
                              <label class="radio-inline">
                                <input name="show-bottom" type="radio" value="1" checked>显示
                              </label>
                          </#if>
                          <#else>
                            <label class="radio-inline">
                              <input name="show-bottom" type="radio" value="0">不显示
                            </label>
                            <label class="radio-inline">
                              <input name="show-bottom" type="radio" value="1" checked>显示
                            </label>
                        </#if>
                      </div>
                    </div>

                    <div class="form-group">
                      <label>是否显示雪球：</label>

                      <div class="form-inline">
                        <#if organizer.showBall?exists>
                          <#if organizer.showBall==0>
                            <label class="radio-inline">
                              <input name="show-ball" type="radio" value="0" checked>不显示
                            </label>
                            <label class="radio-inline">
                              <input name="show-ball" type="radio" value="1">显示
                            </label>
                            <#else>
                              <label class="radio-inline">
                                <input name="show-ball" type="radio" value="0">不显示
                              </label>
                              <label class="radio-inline">
                                <input name="show-ball" type="radio" value="1" checked>显示
                              </label>
                          </#if>
                          <#else>
                            <label class="radio-inline">
                              <input name="show-ball" type="radio" value="0">不显示
                            </label>
                            <label class="radio-inline">
                              <input name="show-ball" type="radio" value="1" checked>显示
                            </label>
                        </#if>
                      </div>
                    </div>

                    <div class="form-group">
                      <label>是否启用地区筛选功能：</label>
                      <div class="form-inline">
                        <#if organizer.showRegionFilter?exists>
                          <#if organizer.showRegionFilter==0>
                            <label class="radio-inline">
                              <input name="show-region-filter" type="radio" value="0" checked>不启用
                            </label>
                            <label class="radio-inline">
                              <input name="show-region-filter" type="radio" value="1">启用
                            </label>
                            <#else>
                              <label class="radio-inline">
                                <input name="show-region-filter" type="radio" value="0">不启用
                              </label>
                              <label class="radio-inline">
                                <input name="show-region-filter" type="radio" value="1" checked>启用
                              </label>
                          </#if>
                          <#else>
                            <label class="radio-inline">
                              <input name="show-region-filter" type="radio" value="0">不启用
                            </label>
                            <label class="radio-inline">
                              <input name="show-region-filter" type="radio" value="1" checked>启用
                            </label>
                        </#if>
                      </div>
                    </div>
                    <div class="form-group">
                      <label>主办方结算账号:</label>
                      <input id="organizer-account" class="form-control" placeholder="主办方结算账号"
                             value="${(organizer.organizerAccount)!''}">
                    </div>
                    <div class="form-group">
                      <label>结算账号开户姓名:</label>
                      <input id="organizer-account-name" class="form-control" placeholder="结算账号开户姓名"
                             value="${(organizer.organizerAccountName)!''}">
                    </div>
                    <div class="form-group">
                      <label>账号开户行:</label>
                      <input id="organizer-bank" class="form-control" placeholder="账号开户行"
                             value="${(organizer.organizerBank)!''}">
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!-- /.row (nested) -->
          </div>
          <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
      </div>
      <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
  </div>
  <!-- /#page-wrapper -->

</div>
<!-- /#wrapper --><div id="hxz-background" class="background" style="display: none; "></div>
<div id="hxz-progressBar" class="progressBar" style="display: none; ">数据加载中，请稍等...</div>

<script src="/server/r/require.js"></script>
<script type="text/javascript">/*resourcemap*/
require.config({paths:{
  "r/bower_components/jquery/dist/jquery.min": "/server/r/bower_components/jquery/dist/jquery.min",
  "r/bower_components/underscore/underscore-min": "/server/r/bower_components/underscore/underscore-min",
  "r/static/js/hxz/hxz.valid": "/server/r/static/js/hxz/hxz.valid_12cc206",
  "r/static/js/hxz/hxz.rest": "/server/r/static/js/hxz/hxz.rest_07c8105",
  "r/bower_components/alertify/alertify.min": "/server/r/bower_components/alertify/alertify.min",
  "r/static/js/alertify-config": "/server/r/static/js/alertify-config_0cc8db2",
  "r/bower_components/bootstrap/dist/js/bootstrap.min": "/server/r/bower_components/bootstrap/dist/js/bootstrap.min",
  "r/bower_components/metisMenu/dist/metisMenu.min": "/server/r/bower_components/metisMenu/dist/metisMenu.min",
  "r/bower_components/select2/dist/js/select2": "/server/r/bower_components/select2/dist/js/select2",
  "r/static/js/hxz/hxz.ui": "/server/r/static/js/hxz/hxz.ui_0a7714d",
  "r/static/js/hxz/hxz": "/server/r/static/js/hxz/hxz_589b155",
  "r/vendor/umeditor/umeditor.config": "/server/r/vendor/umeditor/umeditor.config",
  "r/vendor/umeditor/umeditor": "/server/r/vendor/umeditor/umeditor",
  "r/bower_components/fex-webuploader/dist/webuploader": "/server/r/bower_components/fex-webuploader/dist/webuploader"
}});

  require(['r/bower_components/jquery/dist/jquery.min', 'r/static/js/hxz/hxz', "r/vendor/umeditor/umeditor", "r/static/js/alertify-config", "r/bower_components/fex-webuploader/dist/webuploader"], function ($, hxz, UM, alertify, WebUploader) {

    var isAddOrg = ($('#add-organizer').get(0)) ? true : false;

    // 初始化Web Uploader
    var uploader = WebUploader.create({

      // 选完文件后，是否自动上传。
      auto: true,

      // swf文件路径
      swf: "/server-release/bower_components/fex-webuploader/dist/Uploader.swf",

      // 文件接收服务端。
      server: 'http://image.huaxuezoo.com/upload',

      // 选择文件的按钮。可选。
      // 内部根据当前运行是创建，可能是input元素，也可能是flash.
      pick: {
        id: '#filePicker',
        multiple: false
      },
      // 只允许选择图片文件。
      accept: {
        title: 'Images',
        extensions: 'gif,jpg,jpeg,bmp,png',
        mimeTypes: 'image/*'
      },
      thumb: {
        width: 110,
        height: 110,
        // 图片质量，只有type为`image/jpeg`的时候才有效。
        quality: 70,
        // 是否允许放大，如果想要生成小图的时候不失真，此选项应该设置为false.
        allowMagnify: true,
        // 是否允许裁剪。
        crop: true,
        // 为空的话则保留原有图片格式。
        // 否则强制转换成指定的类型。
        type: 'image/jpeg'
      },
      compress: {
        width: 700,
        height: 700,
        // 图片质量，只有type为`image/jpeg`的时候才有效。
        quality: 90,
        // 是否允许放大，如果想要生成小图的时候不失真，此选项应该设置为false.
        allowMagnify: false,
        // 是否允许裁剪。
        crop: true,
        // 是否保留头部meta信息。
        preserveHeaders: true,
        // 如果发现压缩后文件大小比原来还大，则使用原来图片
        // 此属性可能会影响图片自动纠正功能
        noCompressIfLarger: true,

        // 单位字节，如果图片大小小于此值，不会采用压缩。
        compressSize: 0
      }

    });

    var ajaxbg = $("#hxz-background,#hxz-progressBar");
    ajaxbg.hide();

    // 当有文件添加进来的时候
    uploader.on('fileQueued', function (file) {
      uploader.makeThumb(file, function (error, src) {
        if (error) {
          $("#preview-image").replaceWith('<span>不能预览</span>');
          return;
        }

        $("#preview-image").attr("src", src);

      }, 350, 350);
    });

    uploader.on('beforeFileQueued', function (file) {
      if (file.getSource().size > 310000) {
        alertify.error("上传图片大小不能大于300K", "danger");
        return false;
      }
    });

    // 文件上传成功，给item添加成功class, 用样式标记上传成功。
    uploader.on('uploadSuccess', function (file, response) {
      ajaxbg.hide();
      $("#organizer-logoUrl").val(response[0].url);
      $("#preview-image").show();
    });

    function event() {

      var allowTypes = $("#allowTypes").val();
      for (var i = 0; i < allowTypes.length; i++) {
        $("#activity" + allowTypes[i]).attr("checked", "checked");
      }
      /*账号绑定*/
      $("#bind-Hxz-btn").unbind("click").on("click", function (e) {
        if ($(e.currentTarget).attr('disabled') == 'disabled') {
          return;
        }
        var username = $("#organizer-userId").val();
        if (!username) {
          return alertify.error("请输入滑雪族账号", "danger");
        } else {
          var data = {
            username: username
          };
          hxz.doPost({url: hxz.RestApi.manageGetHxzUserInfo, data: data}, function (data) {
            if (data.status == "0") {
              return alertify.error(data.msg, "danger");
            }
            if (data.status == "1") {
              $("#hxz-userId").val(data.data);
              return alertify.log(data.msg);
            }
          });
        }
      });

      $("#user-profile-save-btn").unbind("click").on("click", function () {
        if (isAddOrg) {
          if (!$("#hxz-userId").val()) {
            alertify.log("请先绑定滑雪族账号!");
            return;
          }
        }
        /*前台用户设置的权限*/
        var typeVal = "";
        $('input:checkbox[name="type"]:checked').each(function () {
          typeVal += $(this).val();
        });

        var logoUrl =$("#organizer-logoUrl").val();
        if(logoUrl==""){
          logoUrl="http://weixin.huaxuezoo.com/server/r/static/images/org-logo.jpg";
        }
        var data = {
          userId: $("#hxz-userId").val(),
          description: $("#user-profile-introduction").val(),
          name: $("#organizer-name").val(),
          contactPerson: $("#organizer-contactPerson").val(),
          email: $("#organizer-email").val(),
          phone: $("#organizer-phone").val(),
          logoUrl: logoUrl,
          organizerAccount: $("#organizer-account").val(),
          organizerAccountName: $("#organizer-account-name").val(),
          organizerBank: $("#organizer-bank").val(),
          type: typeVal,
          category: $("input[name='organizer-category']:checked").val(),
          showBottom: $("input[name='show-bottom']:checked").val(),
          showBall: $("input[name='show-ball']:checked").val(),
          showRegionFilter: $("input[name='show-region-filter']:checked").val()
        };

        console.log(data);

        var organizerId = $("#organizer-id").val();
        if (organizerId && organizerId.length > 0) {

          data.organizerId = organizerId;
          hxz.doPost({url: hxz.RestApi.manageOrganizerUpdate, data: data}, function (data) {

            if (data.status == "0") {
              return alertify.error(data.msg, "danger");
            }

            if (data.status == "1") {
              alertify.log("修改用户成功!");
              setTimeout(function () {
                window.location.href = "/manage/organizer-list";
              }, 1000);
            }
          });
        } else {

          hxz.doPost({url: hxz.RestApi.manageOrganizerAdd, data: data}, function (data) {
            if (data.status == "0") {
              return alertify.error(data.msg, "danger");
            }

            if (data.status == "1") {
              alertify.log("添加用户成功!");
              setTimeout(function () {
                window.location.href = "/manage/organizer-list";
              }, 1000);

            }
          });
        }
      });
    }

    event();
  });
</script>
</body>
</html>
